package com.todo.auth.controller.request;


import com.todo.common.utils.StringUtils;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author zhangwenxiang
 * @date 2024/4/8 23:06
 * @description
 */
@Data
@Schema(title = "用户名注册入参", description = "用户名注册入参")
public class UserNameRegisterParam {

    @Schema(title = "用户名", description = "用户名")
    private String userName;

    @Schema(title = "密码", description = "密码")
    private String password;

    public boolean checkParam() {
        if (StringUtils.isBlank(userName) || StringUtils.isBlank(password)) {
            return false;
        }
        return true;
    }
}
